package com.lyl.servicelive.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 直播课程关联推荐表
 * </p>
 *
 * @author 雷艳玲
 * @since 2022-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("live_course_goods")
@ApiModel(value="CourseGoods对象", description="直播课程关联推荐表")
public class CourseGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "直播课程id")
    private Long liveCourseId;

    @ApiModelProperty(value = "推荐点播课程id")
    private Long goodsId;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "商品现价")
    private BigDecimal price;

    @ApiModelProperty(value = "商品原价")
    @TableField("originalPrice")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "商品标签")
    private Integer tab;

    @ApiModelProperty(value = "商品链接")
    private String url;

    @ApiModelProperty(value = "商品状态：0下架，1上架，2推荐")
    private String putaway;

    @ApiModelProperty(value = "购买模式(1,链接购买 2,二维码购买)")
    private Integer pay;

    @ApiModelProperty(value = "商品二维码")
    private String qrcode;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private Integer isDeleted;

}
